home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / check_id / checkid.doc next >
Text File  |  1996-07-10  |  2KB  |  48 lines

  1. Utility CHECKID
  2.  
  3. Author: Jon Glazer
  4.  
  5. Purpose: To provide a meathod of testing for station ID number within batch
  6.          files.
  7.  
  8. Implmentation: The paramaters for CHECKID are possible station ID numbers.
  9.          The ID is the PHYSICAL STATION NUMBER found when doing USERLIST/A.
  10.          The ID may be specified in decimal format (just the number) or
  11.          in HEX format (prefixing a "$" to the number).  CHECKID will return
  12.          a message if the station number matches one of the parameters and
  13.          it will set ERRORLEVEL to parameter number so you may test it within
  14.          batch files.
  15.  
  16. Example: Say you have a couple 386's on your network.  Their station numbers
  17.          are $1F and $20 (in hex).  You may have a TSR you would like loaded
  18.          to these stations alone and none of the others (perhaps LOADHI from
  19.          Quarterdeck).  You can have all of your workstations run a start-up
  20.          batch file that will load all of the TSRs.  A batch file might look
  21.          like this:
  22.  
  23.                 CHECKID $1F $20 $3F
  24.                 IF ERRORLEVEL 3 GOTO SPECIAL
  25.                 IF ERRORLEVEL 2 GOTO 386LOAD
  26.                 IF ERRORLEVEL 1 GOTO 386LOAD
  27.                 GOTO END
  28.                 :386LOAD
  29.                 tsr for 386's
  30.                 :GOTO END
  31.                 :SPECIAL
  32.                 another type of computer or instance ($3f)
  33.                 :END
  34.  
  35.          You may specify any number of parameter in any mixed format of decimal
  36.          and hex numbers
  37.  
  38.                 CHECKID $1F $20 13 10 2 $6 garbage
  39.  
  40.          CHECKID will accept the first 6  parameters and ignore the last.  If
  41.          no parameters are specified, CHECKID will just stop.
  42.  
  43.          If "Q" is found on the command line before the station ID is set true,
  44.          no message will be displayed so if you specify CHECKID $1F Q $2F, a
  45.          a message will be displayed if $1F is found but not for $2F.
  46.  
  47. You can send comments to me via EasyPlex at 71170,424.
  48.